package com.vcc.service.boss.request.risk;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;
import java.util.List;

@Data
public class CreateRiskDto implements Serializable {
    @NotBlank(message = "风控名不能为空")
    private String name;

    @NotBlank(message = "风控代码不能为空")
    private String code;

    private String mccValue;

    private String countryValue;

    private String merchantValue;

    private String failValue;

    private String refundValue;

    private String reversalValue;

    private String verifyValue;

    @NotNull(message = "风控规则id不能为空")
    @Size(min = 1, message = "风控规则id不能为空")
    private List<Long> ids;

    @NotNull(message = "状态不能为空")
    @Range(min = 0, max = 1, message = "状态值只能为0或1")
    private Integer status;

    @NotNull(message = "是否自动化不能为空")
    private Boolean hasAuto;

    @NotBlank(message = "风控当方法不能为空")
    private String functionName;

    @NotBlank(message = "风控类别不能为空")
    private String type;

    @NotNull(message = "风控类别不能为空")
    private Boolean ruleType;

    private Integer minTransactionCount;
}
